/*
 *  Copyright 2020-2025 the original author or authors.
 *  You cannot use this file unless authorized by the author.
 */

package org.ipig.computing;

/**
 * 计算服务
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @since 1.0
 */
public interface ComputingService {
    /**
     * 计算
     */
    public default void computing() {

    }

    /**
     * 计算之后的回调
     * <li>注：不管计算成功与失败都会执行
     */
    public default void afterComputing() {

    }

    /**
     * 计算之前的回调
     */
    public default void beforeComputing() {

    }
}
